from django.contrib import admin
from models import *
from mptt.admin import MPTTModelAdmin

class PermissionInline(admin.TabularInline):
  model = Permission

class TreeModelAdmin(MPTTModelAdmin):
  #list_display = ('__unicode__', 'lft', 'rght')
  inlines = [ PermissionInline, ]

admin.site.register(( Permission, Action ))
admin.site.register(( ACO, ARO ), TreeModelAdmin )